package com.gmu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gmu.domain.ResResult;
import com.gmu.domain.vo.BeSampleUnitsActivitiesVo;
import com.gmu.domain.vo.PageVo;
import com.gmu.pojo.BeSampleUnitsActivities;

import java.text.ParseException;
import java.util.List;

/**
 * <p>
 * 被采样单位活动表 服务类
 * </p>
 *
 * @author testjava
 * @since 2022-07-24
 */
public interface BeSampleUnitsActivitiesService extends IService<BeSampleUnitsActivities> {

    ResResult<?> showReservationAddress(Integer activitiesId);

    ResResult<?> getTimeStamp(Integer activitiesId,Integer addressId,Integer activitiesAddressId);

    ResResult<?> unitsSelectActivities(Integer activitiesId, Integer unitsId, Integer peoples, Integer intervalTime) throws ParseException;

    ResResult<?> unitsDistributeActivities(Integer activitiesId, Integer unitsId, Integer peoples, Integer addressId, Integer[] unitsIds, Integer intervalTime) throws ParseException;

    ResResult<?> unitsSelectActivitiesOrder(Integer activitiesId, Integer unitsId, Integer peoples, Integer intervalTime) throws ParseException;

    Integer updatePeoples(Integer beSampleId, Integer orderedPeoples);

    IPage<BeSampleUnitsActivities> getPages(int currentPage, int pageSize);

    IPage<BeSampleUnitsActivities> getByPage(int currentPage, int pageSize);

    PageVo<?> getBeSampleUnitsActivitiesByActivitiesId(Integer pageNum, Integer pageSize, BeSampleUnitsActivitiesVo beSampleUnitsActivities, String beginTime, String endTime);

    List<BeSampleUnitsActivitiesVo> getBeSampleUnitsActivitiesList(BeSampleUnitsActivitiesVo beSampleUnitsActivities, String beginTime, String endTime);

}
